package com.example.demo1.iot;

import com.example.demo1.core.entity.iot.Weather;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("weatherMapper")
//@Mapper
public interface WeatherMapper {

	int insert(Weather weather);

	int batchInsert(List<Weather> weatherList);

	List<Weather> select(@Param("limit") Long limit, @Param("offset") Long offset);

	void createDB();

	void createTable();
}